#include <iostream>
#include <string>
#include <vector>
using namespace std;

bool checkPassword(string password)
{
    bool zimu=false;
    int shuzi=0;
    for(char i : password)
    {
        if(i>='a'&&i<='z')
            zimu=true;
        if(i>='0'&&i<='9')
            shuzi++;
    }
    return password.size()>=8 && zimu && shuzi>=2;
}

void judge(string password)
{
    if(checkPassword(password))
        cout<<"Valid Password!"<<endl;
    else
        cout<<"Invalid Password!"<<endl;
}

void test()
{
    string allPassword[]={"123","123456789","a1234567","aa1234567","aaaaaaaasdsd"};
    for(string i : allPassword)
        judge(i);
}

int main()
{
    /*string password;
    cout<<"Password:";
    cin>>password;*/
    test();
}
